package com.pansoft.openplanet.adapter;

import androidx.annotation.Nullable;
import android.widget.ImageView;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.efounder.chat.model.AppConstant;
import com.efounder.chat.utils.LXGlideImageLoader;
import com.pansoft.newasset.bean.MenuBean;
import com.pansoft.openplanet.R;

import java.util.List;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2019/4/24 16:11
 * @desc :全部应用顶部功能图标的列表适配器
 * @version: 1.0
 */
public class AssetAllAppTopAdapter extends BaseQuickAdapter<MenuBean,BaseViewHolder> {
    float ll;
    public AssetAllAppTopAdapter(int layoutResId, @Nullable List<MenuBean> data) {
        super(layoutResId, data);

    }

    @Override
    protected void convert(BaseViewHolder helper, MenuBean item) {
        String filepath = AppConstant.APP_ROOT + "/res/unzip_res/menuImage/" + item.getIcon();
        LXGlideImageLoader.getInstance().displayImage(mContext, (ImageView) helper.getView(R.id.iv_menu_icon),
                "file://" + filepath);
    }
}
